package org.dinnermate.staff;

import org.dinnermate.db.AbstractImplementation;

public class StaffMemberImpl extends AbstractImplementation<StaffMember>
{

	public StaffMemberImpl( StaffMember staffMember )
	{
		super(staffMember);
	}

	public String getFullName()
	{
		return ao.getFirstName() + " " + ao.getLastName();
	}
	
	public void setFullName(String fullName)
	{
		ao.setFirstName(fullName.substring(0, fullName.indexOf(" ")));
		ao.setLastName(fullName.substring(fullName.indexOf(" ") + 1));
	}
	
	public String toString()
	{
		return getFullName();
	}
}
